﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.eforceglobal.crux.security.EncryptionAndHashing.Enums;
using com.eforceglobal.crux.security;
using com.eforceglobal.crux.BusinessFacades;
using com.eforceglobal.crux.DTOs;
using com.eforceglobal.crux.configuration;

namespace com.eforceglobal.crux.controllers.Administration
{
    public class UserController
    {
        public static PasswordStorageType GetPasswordStorageType()
        {
            return CruxConfigurationManager.GetPasswordStorageType();
        }

        public static void SaveUser(UserInformation userInformation)
        {
            UserFacade userFacade = new UserFacade();
            PasswordStorageType passwordStorageType = CruxConfigurationManager.GetPasswordStorageType();
            userFacade.SaveUser(userInformation, passwordStorageType);
        }
    }
}
